#ifndef ECONTAINER_H
#define ECONTAINER_H

#include <sptk3/CGroup.h>
#include <iostream>
#include <Fl/Fl.h>
#include <Fl/Fl_Round_Button.h>
#include <Fl/Fl_Check_Button.h>
#include <Fl/Fl_Box.h>
#include <Fl/Fl_Multiline_Input.H>
#include <Fl/Fl_Group.H>
#include <sstream>
#include "eDragbox.H"
#include "ewindow.H"

class eDragBox;
class eContainer : public Fl_Group
{
    public:
        eContainer(int x,int y,int w,int h,std::string tip);
        virtual ~eContainer();
        Fl_Group *inner;
        std::string tipgonder();
        Fl_Widget * icerikgonder();
        bool deletesil();

        static void innerClick_CB(Fl_Widget *p, void *userdata);
        void innerClick_CB2();

        static void metinYaz_CB(Fl_Widget *p, void *userdata);
        void metinYaz_CB2(Fl_Widget *p);

        int xxgonder();
        int yygonder();
        int genislikgonder();
        int yukseklikgonder();
        int fmavigonder();
        int fyesilgonder();
        int fkirmizigonder();
        int byesilgonder();
        int bmavigonder();
        int bkirmizigonder();
        int yataygonder();
        int dikeygonder();
        int fontgonder();
        int hizgonder();
        std::string metingonder();
        std::string fonttextgonder();
        void fmavial(int pf);
        void fyesilal(int pf);
        void fkirmizial(int pf);
        void bmavial(int pb);
        void byesilal(int pb);
        void bkirmizial(int pb);
        void yatayal(int py);
        void dikeyal(int pd);
        void fontal(std::string ptext,int pid);
        void metinal(std::string ptext);
        void hizal(int ph);

        void enboy(int g,int y);
        void pozisyon(int g,int y);
    protected:
        int handle(int event);
    private:
        eDragBox *b1;
        eDragBox *b2;
        Fl_Group *sahip;
        Fl_Input *text;
        bool hareket;
        Fl_Multiline_Input *metinkutusu;
        bool sizable;
        Fl_Widget *icerik;
        std::string tip;
        bool sildelete;
        int xx;
        int yy;
        int genislik;
        int yukseklik;
        int fmavi;
        int fyesil;
        int fkirmizi;
        int byesil;
        int bmavi;
        int bkirmizi;
        int yatay;
        int dikey;
        int hiz;
        std::string font;
        int fontid;
        std::string metin;

};

#endif // ECONTAINER_H
